package site.shenjie.eureka.ribbon.feign.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import site.shenjie.eureka.ribbon.feign.config.FeignConfiguration;

@FeignClient(value = "EUREKA-CLIENT-USER-SERVICE", configuration = FeignConfiguration.class)
public interface UserRemoteClient {

    // 这里的URI定义应与被调用的接口的URI一致
    @RequestMapping("/user/hello")
    public String index();
}
